<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>群体感知写作</title>
<link href="/pad/resources/css/bootstrap.min.css" rel="stylesheet">
<link href="/pad/resources/css/bootstrap-select.min.css" rel="stylesheet">
<link href="/pad/resources/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="/pad/resources/css/bootstrap-table.min.css" rel="stylesheet">
<link href="/pad/resources/css/bootstrap-editable.css" rel="stylesheet">
<link href="/pad/resources/css/style.css" rel="stylesheet">
</head>
<body>
	<nav class="navbar navbar-blue navbar-fixed-top" role="navigation">
		<div class="container bs-docs-container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-6">
					<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
				</button>
				<h1>Pad</h1>
			</div>
			<ul class="nav navbar-nav">
				<li><a href="/pad">课程列表</a></li>
				<li class="active"><a href="#">评论模板</a></li>
				<li><a href="/pad/vision_manage.html">视图管理</a></li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown"><a id="user" href="#" class="dropdown-toggle" data-toggle="dropdown">用户 <span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="/pad/logout">退出登录</a></li>
					</ul></li>
			</ul>
		</div>
	</nav>
	<div class="container bs-docs-container">
		<ol id="breadcrumb" class="breadcrumb">
			<li class="active">首页</li>
		</ol>
		<div id="toolbar"></div>
		<table id="data-table"></table>
	</div>
	<!-- 创建模板 modal -->
	<div id="createTemplateModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">创建评论模板</h4>
				</div>
				<div class="modal-body">
					<form id="createTemplate" role="form" action="/pad/comment/saveOrUpdateTemplate" method="post">
						<div class="form-group">
							<input class="form-control" name="templateName" type="text" placeholder="模板名称">
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#createTemplate','#createTemplateModal');">创建</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 创建模板问题 modal -->
	<div id="createQuestionModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">创建评论问题</h4>
				</div>
				<div class="modal-body">
					<form id="createQuestion" role="form" action="/pad/comment/saveOrUpdateQuestion">
						<input type="hidden" name="templateId">
						<div class="form-group">
							<input type="text" name="title" class="form-control" placeholder="编号">
						</div>
						<div class="form-group">
							<input type="text" name="question" class="form-control" placeholder="维度">
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#createQuestion','#createQuestionModal');">创建</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 创建活动 modal -->
	<div id="createActivityModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">创建活动</h4>
				</div>
				<div class="modal-body">
					<form id="createActivity" role="form" action="activity/createActivity">
						<input type="hidden" name="assignmentId" value="'+assignmentId+'">
						<div class="form-group">
							<input type="text" name="activityName" class="form-control" placeholder="活动名称">
						</div>
						<div class="form-group">
							<input type="text" name="description" class="form-control" placeholder="活动简介">
						</div>
						<div class="form-group">
							<select name="activityType" class="form-control selectpicker" placeholder="活动类型">
								<option value="">--选择活动类型--</option>
								<option value="EDIT">编辑</option>
								<option value="COMMENT">组内互评</option>
								<option value="FEEDBACK">组间互评</option>
							</select>
						</div>
						<div class="form-group">
							<div class="input-daterange input-group">
								<input type="text" class="form-control date-start" name="startDate" placeholder="开始日期" /> <span class="input-group-addon">至</span> <input type="text"
									class="form-control date-end" name="endDate" placeholder="结束日期" />
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#createActivity','#createActivityModal');">创建</button>
				</div>
			</div>
		</div>
	</div>
	<script src="/pad/resources/js/jquery.min.js"></script>
	<script src="/pad/resources/js/jquery.form.min.js"></script>
	<script src="/pad/resources/js/bootstrap.min.js"></script>
	<script src="/pad/resources/js/bootstrap-table.min.js"></script>
	<script src="/pad/resources/js/bootstrap-select.min.js"></script>
	<script src="/pad/resources/js/bootstrap-editable.js"></script>
	<script src="/pad/resources/js/bootstrap-table-editable.js"></script>
	<script src="/pad/resources/js/bootstrap-datetimepicker.min.js"></script>
	<script src="/pad/resources/js/comment_template.js"></script>
</body>
</html>
